@inherits PartialViewMacroPage
@using Umbraco.Cms.Web
@using Umbraco.Cms.Web.Macros
@using Umbraco.Framework
@using PBDesk.com.Extension.UmbHelper
@{  
  string content = string.Empty;
  string linkFormat = "<a href=\"{0}\" title=\"Goto {1} Articles\" >{2}</a>";
  foreach(var page in MyHelper.GetHomeNode(DynamicModel).ArticlesGatewayPages)
  {
    if(content.Length > 0 )
    {
     content += " | ";
    }
    content += String.Format(linkFormat, page.Url, page.Name, page.Name);
  }
}
@Umbraco.RenderMacro("sidebarWidget", new { Title = "More Articles", Content = content })